home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / chat / ircii-2.8he / ircii-2 / help / USERHOST < prev    next >
Encoding:
Text File  |  1994-10-16  |  1.3 KB  |  31 lines

  1. Usage: USERHOST <nickname> [<nickname> .. ] [-cmd <command>]
  2.   If only USERHOST nickname is supplied the server will be queried
  3.   for information about that person.  It will return something in
  4.   the format:
  5.     *** Daemon is frechett@spot.Colorado.EDU (Is an IRC operator)
  6.   If -cmd command   is added then it will parse the returned line
  7.   just as though it were an ON or an ALIAS.
  8.   Parameters are:
  9.     $0  nickname
  10.     $1  '+' if server operator, '-' otherwise
  11.     $2  '+' if marked away, '-' if here
  12.     $3  username
  13.     $4  hostname
  14.  
  15. Note:  Something you may run into if you use this command within an
  16.   ALIAS or ON is the following.  Take the following example.
  17.     alias bonk userhost $0 -cmd echo \($$*\)
  18.   When bonk is called, $0 is expanded to a nickname, and $$* changes to
  19.   $* to be used by userhost -cmd.  However, since the entire expression
  20.   is parsed twice, the \'s are eaten the first time leaving ($*) which
  21.   will never expand.  Thsu to make the above alias work, it has to be:
  22.     alias bonk userhost $0 -cmd echo \\\($$*\\\)
  23.   On the first pass it becomes   userhost nick -cmd echo \($*\)
  24.   and on the second pass when the -cmd part is executed it
  25.   expands and executes   echo (contents of $*)
  26.   This is NOT a special case or a bug.  It is just an added level of
  27.   processing...
  28.  
  29. See Also:
  30.   expressions  (under Special Cases at the end)
  31.